package com.jkl.entity;

import com.jkl.pojo.Account;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SCAgree {
    public String userId;
    public String friendId;
    public String userName;
    public String sign;
    public Long alterTime;
    public Long buildTime;
    public SCAgree(CSAgree agree, Account account){
        this.userId= agree.getFriendId();
        this.friendId= agree.getUserId();
        this.userName=account.getUserName();
        this.sign=account.getSign();
        this.alterTime= account.getAlterTime();
        this.buildTime=agree.getBuildTime();
    }
}
